package com.carpark.ejb.DAO;

import com.carpark.ejb.Model.ParkingpassesModel;
import com.carpark.ejb.Model.ParkingspacesModel;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Remote;

/**
 *
 * @author Sawior
 */
@Local
public interface ParkingpassesDAO {

    public List<ParkingpassesModel> getAllParkingPasses();

    public void addPass(ParkingpassesModel pass);

    public void detelePass(ParkingpassesModel pass);

    public void updatePass(ParkingpassesModel pass);

    public int getParkingPassesSize();
    
    public List<ParkingpassesModel> getParkingPassBySpaceId(ParkingspacesModel space);

    public ParkingpassesModel getParkingPassById(Integer id);

    public List<ParkingpassesModel> getParkingPassesByDateIssue(Date dateIssue);

    public int getByDateIssueSize(Date dateIssue);

    public List<ParkingpassesModel> getParkingPassesByExpirationDate(Date expirationDate);

    public List<ParkingpassesModel> getParkingPassesByPassType(String passType);
}
